package com.hyz.login.service.impl;


import com.hyz.login.mapper.SysUserMapper;
import com.hyz.login.model.SysUser;
import com.hyz.login.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
   private SysUserMapper sysUserMapper;

    @Override
    public SysUser userFind(String loginname, String pwd) {
//        QueryWrapper<SysUser> wrapper = new QueryWrapper<SysUser>();
//        wrapper.eq("loginname",loginname);
//        wrapper.eq("pwd",pwd);
        return sysUserMapper.userFind(loginname, pwd);
    }
}
